package com.yssoft.entity.purchase;

import com.yssoft.entity.CommonEntity;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import java.math.BigDecimal;
import java.util.Date;

/**
 * t_recipient_detail 收货单详情
 * @author 
 */
@Table(name="t_recipient_detail")
public class TRecipientDetail  extends CommonEntity {
    @Id
    private Integer id;

    /**
     * 流水号
     */
    private String code;

    /**
     * 生产批次
     */
    private String productBatch;

    /**
     * 生产日期
     */
    private Date productDate;

    /**
     * 验收数量
     */
    private BigDecimal accepQuantity;

    /**
     * 验退数量
     */
    private BigDecimal refQuantity;

    /**
     * 实际数量
     */
    private BigDecimal actualQuantity;

    /**
     * 有效期(自动计算:生产日期+物料属性中的保质期)
     */
    private String expiryDate;

    /**
     * 物料id（多对一）
     */
    private Integer tMId;

    /**
     * 采购明细id（多对一）
     */
    private Integer tDdId;
    /**
     * 企业id
     */
    private Integer tEId;
    /**
     * 收货单状态
     */
    private String stat;
    /** 部门Id */
	private Integer deptId;
	/** 部门名称 */
	private String deptName;
	
	/** 仓库id */
	@Transient
	private Integer tWarehouseId;
    private static final long serialVersionUID = 1L;

    public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getStat() {
		return stat;
	}

	public void setStat(String stat) {
		this.stat = stat;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getProductBatch() {
        return productBatch;
    }

    public void setProductBatch(String productBatch) {
        this.productBatch = productBatch;
    }

    public Date getProductDate() {
        return productDate;
    }

    public void setProductDate(Date productDate) {
        this.productDate = productDate;
    }

    public BigDecimal getAccepQuantity() {
        return accepQuantity;
    }

    public void setAccepQuantity(BigDecimal accepQuantity) {
        this.accepQuantity = accepQuantity;
    }

    public BigDecimal getRefQuantity() {
        return refQuantity;
    }

    public void setRefQuantity(BigDecimal refQuantity) {
        this.refQuantity = refQuantity;
    }

    public BigDecimal getActualQuantity() {
        return actualQuantity;
    }

    public void setActualQuantity(BigDecimal actualQuantity) {
        this.actualQuantity = actualQuantity;
    }

    public String getExpiryDate() {
        return expiryDate;
    }

    public void setExpiryDate(String expiryDate) {
        this.expiryDate = expiryDate;
    }

    public Integer gettMId() {
        return tMId;
    }

    public void settMId(Integer tMId) {
        this.tMId = tMId;
    }

    public Integer gettDdId() {
        return tDdId;
    }

    public void settDdId(Integer tDdId) {
        this.tDdId = tDdId;
    }

    public Integer gettEId() {
        return tEId;
    }

    public void settEId(Integer tEId) {
        this.tEId = tEId;
    }

	public Integer gettWarehouseId() {
		return tWarehouseId;
	}

	public void settWarehouseId(Integer tWarehouseId) {
		this.tWarehouseId = tWarehouseId;
	}
}